mini-os: select call incorrectly reports xce_handle as ready
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jul 2008 13:11:47 +0000 (14:11 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 24 Jul 2008 13:11:47 +0000 (14:11 +0100)
commit597e548eef7de6cba2f30f47a7f3177e31cadbeb
treefbca5c74729978a257b423acb789d4cce8d71282
parentfd6a37dbdcdf53a65f27115aebfc0a57e0040004
mini-os: select call incorrectly reports xce_handle as ready

The current implementation in minios of xc_evtchn_pending doesn't set
read=0 when there is exactly one port pending. This resulted in
select() incorrectly reporting the file descriptor as ready.

Signed-off-by: Diego Ongaro <diego.ongaro@citrix.com>
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/libxc/xc_minios.c